<template>
<div class="drawer">
    <ul class="drawer-ul">
        <li>
            <div class="link">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6c0553468a73cc445012577d8993dfc9.png?thumb=1&w=50&h=50&f=webp&q=90" alt="">
                <span class="text">Xiaomi 12 Pro</span>
            </div>
        </li>
        <li>
            <div class="link">
                <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6c0553468a73cc445012577d8993dfc9.png?thumb=1&w=50&h=50&f=webp&q=90" alt="">
                <span class="text">Xiaomi 12 Pro</span>
            </div>
        </li>
    </ul>
</div>
</template>

<script>
export default {
    name: 'SiteDrawer',
}
</script>

<style lang="less" scoped>
.drawer {
    position: absolute;
    top: 0;
    left: 234px;
    z-index: 6;
    height: 458px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-left: 0;
    box-shadow: 0 8px 16px rgb(0 0 0 / 18%);
    display: none;

    .drawer-ul {
        height: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;

        li {
            position: relative;
            float: left;
            width: 265px;
            height: 76px;

            .link {
                box-sizing: border-box;
                padding: 18px 20px;
                line-height: 40px;
                color: #333;
                -webkit-transition: color .2s;
                transition: color .2s;

                img {
                    width: 50px;
                    margin-right: 12px;
                    vertical-align: middle;
                }

                .text {
                    width: 172px;
                    line-height: 40px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                }
            }
        }
    }
}
</style>